package design.test2Proxy.staticproxy;

public class ProxyObject implements CommonInterface {
	private RealObject realObject = new RealObject();
	
	@Override
	public void product() {
		before();//
		realObject.product();//
		after();//
	}

	@Override
	public void sell() {
		before();
		realObject.sell();
		after();

	}


	public void before() {
		System.out.println("before....");
	}


	public void after() {
		System.out.println("after....");
	}
}
